<?php
/**
 * Created by IntelliJ IDEA.
 * User: ahwwl
 * Date: 2018/2/8
 * Time: 上午10:32
 */

namespace app\controller;




use commen\ebjyd;
use commen\ifuly;
use commen\xinditu;

class Upstream extends CommonController
{
    function index()
    {
        $up_info = ebjyd::get_info();
        $xinditu_info = ifuly::get_balance();
        $xinditu_balance = "0";
        if(!empty($xinditu_info["data"]["balance"])&&$xinditu_info["error"]==0)
            $xinditu_balance = $xinditu_info["data"]["balance"];
        $this->assign("up_info", $up_info);
        $this->assign("xinditu_balance", $xinditu_balance);
        $this->assign("page_title", "上游信息");
        return $this->fetch();
    }
}